//
//  BindBankDoneVC.m
//  WanCaiC8
//
//  Created by tangang on 2018/1/28.
//  Copyright © 2018年 tangang. All rights reserved.
//

#import "BindBankDoneVC.h"

@interface BindBankDoneVC ()
@property (weak, nonatomic) IBOutlet UILabel *labPrompt;
@property (weak, nonatomic) IBOutlet UILabel *labTitle;
@property (weak, nonatomic) IBOutlet UILabel *labCard;
@property (weak, nonatomic) IBOutlet UIButton *btnDone;
@property (weak, nonatomic) IBOutlet UILabel *labBotttomPrompt;

@end

@implementation BindBankDoneVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.btnDone.layer.masksToBounds=YES;
    self.btnDone.layer.cornerRadius=2.0;
    if (self.type==BindBankDoneVCTypeWithdrawal) {
        self.labTitle.text=@"提现金额";
        self.title=@"提现金额";
        self.labPrompt.text=@"提现成功";
        self.labCard.text=[NSString stringWithFormat:@"¥%@",self.money];
    }else{
        self.labTitle.text=@"绑定成功";
        self.title=@"绑定成功";
        self.labPrompt.text=@"绑定银行";
        self.labCard.text=[NSString stringWithFormat:@"%@  %@",self.model.BankName,[self.model.BankAccount substringWithRange:NSMakeRange(self.model.BankAccount.length-4, 4)]];
        self.labBotttomPrompt.text=@"";
    }
}

- (IBAction)onclickDone:(UIButton *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
